const server_url = {
    in_url_add: '/inurl/add',
    in_url_save: '/inurl/save',
    in_url_list: '/inurl/list',
    in_url_list_avail: '/inurl/list/avail',
    in_url_edit: (id) => {
        if(!id)
            id = -1;
        return ['/inurl/:id/edit', '/inurl/'+id+'/edit'];
    },
    in_url_update: (id) => {
        if(!id)
            id = -1;
        return ['/inurl/:id/update', '/inurl/' + id + '/update'];
    },
    in_url_inactive: (id) => {
        if(!id)
            id = -1;
        return ['/inurl/:id/inactive', '/inurl/' + id + '/inactive'];
    },
    out_url_add: '/outurl/add',
    out_url_save: '/outurl/save',
    out_url_list: '/outurl/list',
    out_url_list_avail: '/outurl/list/avail',
    out_url_edit: (id) => {
        if(!id)
            id = -1;
        return ['/outurl/:id/edit', '/outurl/' + id + '/edit'];
    },
    out_url_update: (id) => {
        if(!id)
            id = -1;
        return ['/outurl/:id/update', '/outurl/' + id + '/update']
    },
    out_url_inactive: (id) => {
        if(!id)
            id = -1;
        return ['/outurl/:id/inactive', '/outurl/' + id + '/inactive'];
    },
    email_url_list:'/email/list',
    email_url_list_0:'/email/list/0',
    email_url_list_1:'/email/list/1',
    email_url_list_2:'/email/list/2',
    email_list_use: (id) => {
        if (!id)
            id = -1;
        return ['/email/:id/use', '/email/' + id + '/use']
    },
    email_show: '/email/show',
    email_list_del: (id) => {
        if (!id)
            id = -1;
        return ['/email/:id/del', '/email/' + id + '/del']
    },

};

module.exports=server_url;